<?php

namespace App\Http\Controllers\Api\V1;

use App\Http\Requests\Api\ApiRequest as Request;
use App\Exceptions\Api\ApiDoneErrorException;
use App\Exceptions\Api\ApiInputErrorException;
use App\Exceptions\Api\ApiRsaEecryptErrorException;
use App\Exceptions\Api\ApiUserNotLoginErrorException;
use App\Exceptions\Api\ApiValidateErrorException;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Models\User;

class LoginController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function login(Request $request)
    {
        $uses = $request->apiUser->login(User::find(59));
        dd($uses);
    }

    public function loginOut(Request $request)
    {
        $uses = $request->apiUser->logout();
        dd($uses);
    }

}
